package com.easyapi.common.enums.datasource;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author: zhuyu
 * @Time: 21:16
 * @ClassName: DatasourceOperationEnum
 */
@AllArgsConstructor
@Getter
public enum DatasourceOperationEnum {
    /**
     * 禁用
     */
    BIND_DATASOURCE("bind_datasource", 1),
    /**
     * 恢复
     */
    LIFE_DATASOURCE("life_datasource", 0),
    /**
     * 更新
     */
    UPDATE("update", 1),
    /**
     * 删除
     */
    DELETE("delete", 0),
    /**
     * 添加
     */
    ADD("add", 2);
    private final String action;
    private final Integer code;
}
